package com.example.demo.openClose;

/**
 * Created by Easettle
 * Date:2020/6/17 23:12
 * Email:easettle@qq.com
 * java课程促销
 */
public class JavaDiscountCourse extends JavaCourse {

    public JavaDiscountCourse(String name, Integer id, Double price) {
        super(name, id, price);
    }

    public Double getDisCountCourse() {
        return super.getPrice() * 0.6;
    }
}
